# 基础镜像
FROM  openjdk:8-jre
# author
MAINTAINER docker-micro-serive
ENV APP_HOMR=/root/docker-micro-service

# 挂载目录
VOLUME /root/docker-micro-service
# 创建目录
# RUN mkdir -p /home/ruoyi
# 指定路径
WORKDIR $APP_HOMR
# 复制jar文件到路径
COPY ./jar/docker-emp.jar ./docker-emp.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","docker-emp.jar"]